import request from '@/utils/request'

// 登录
export function api_login(loginInfo) {
  return request.post('/users/login', loginInfo)
}

// 注册
export function api_signin(userInfo) {
  return request.post('/users/signin', userInfo)
}

// 判断是否登录
export function api_getLogin() {
  return request.get('/users/getlogin')
}

// 退出登录
export function api_logout() {
  return request.get('/users/logout')
}

// 获取用户信息
export function api_getUserInfo(params) {
  return request.get('/users/get_user_info', { params })
}